/*
	damping.cpp

	Author: Chris Haag
	Description:

		Defines body of system that applies damping in
		physics universe. I have to give full credit
		to Chris Hecker on this one because I've never
		heard of the term 'Damping' until I saw the code
		for his demo.
*/

#include "damping.h"

CDamping::CDamping()
{
	m_fLinear = 0.002f;
	m_fAngular = 0.002f;
}

CDamping::CDamping(float fLinear, float fAngular)
{
	m_fLinear = fLinear;
	m_fAngular = fAngular;
}

void CDamping::Influence(CPSystem* p)
{
	p->m_vF += p->m_vVel * -m_fLinear;
	p->m_vT += p->m_vwVel * -m_fAngular;
}

void CDamping::Action(CPSystem* p)
{

}

void CDamping::Reaction(float t)
{

}